package com.erp.itm.dao;

import com.erp.itm.domain.ProjectDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 项目管理
 * @author Eric
 * @email shiliang900713@163.com
 * @date 2019-07-17 20:36:10
 */
@Mapper
public interface ProjectDao {

	ProjectDO get(Long id);
	
	List<ProjectDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(ProjectDO project);
	
	int update(ProjectDO project);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	List<ProjectDO> getNotEndProjectlist();

    int updatereceivedAmount(@Param("receiptAmount") BigDecimal receiptAmount, @Param("id")Long id);

	int updateinvoiceAmount(@Param("invoiceAmount")BigDecimal invoiceAmount, @Param("id")Long id);

    List<String> getCustName();

    List<ProjectDO> getProjectlistByStatus(Long id);
}
